class Student(object):
    __count = 0
    def __init__(self,name):
        self.__name = name
        Student.__count += 1

    @property
    def name(self):
        return self.__name

    @property
    def students_number(self):  # get the instance number of class Student
        return Student.__count

stu1 = Student('xiaohong')
stu2 = Student('xiaoming')
print('The total number of students are:', stu1.students_number)
print(stu1.name)
print(stu2.name)


